/* pages/goods/index.wxss */
page {
  background-color: var(--defaultBgc);
}

.slider {
  position: relative;

  swiper {
    height: 600rpx;

    swiper-item {
      image {
        width: 100%;
        height: 100%;
      }
    }
  }

  .slider-page {
    position: absolute;
    right: 20px;
    bottom: 10px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #fff;
    border-radius: 15px;
    padding: 2px 10px;
  }
}


.goods {
  display: flex;
  flex-direction: column;
  padding: 20rpx 20rpx;

  .main-infor {
    width: 100%;
    background-color: var(--frontColor);
    border-radius: 15px;
    display: flex;
    padding: 30rpx 30rpx;
    flex-direction: column;

    .values {
      height: 60rpx;
      display: flex;
      align-items: center;
      width: 100%;
      justify-content: space-between;

      .price {
        font-size: var(--maxSize);
        color: var(--themeColor);
      }

      .sales {
        font-size: var(--littleSize);
        color: var(--greyColor);
      }
    }

    .intro {
      display: flex;
      width: 100%;
      flex-direction: column;
      margin-top: 20rpx;

      .name {
        font-size: var(--maxSize);
        color: var(--focusColor);
      }

      .des {
        font-size: var(--littleSize);
        color: var(--focusColor);
        margin-top: 10rpx;
        max-height: 150rpx;
        overflow: hidden;
      }
    }
  }


  .ext-info {
    width: 100%;
    background-color: white;
    border-radius: 15px;
    margin-top: 20rpx;
    padding: 10rpx 30rpx;
    display: flex;
    flex-direction: column;

    .post,
    .ensure,
    .params,
    .choosed {
      height: 80rpx;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
  }
}

.product-detail {
  width: 100%;
  background-color: white;
  display: flex;
  flex-direction: column;

  .title {
    width: 100%;
    font-size: var(--bigSize);
    padding: 20rpx 30rpx;
  }

  rich-text {
    display: block;
  }
}

.cart_info_class {
  background-color: var(--themeColor) !important;
}

.paramsPopup {
  padding: 50rpx 30rpx;
  display: flex;
  flex-direction: column;
  min-height: 300rpx;

  .field {
    width: 100%;
    display: flex;
    flex-direction: row;
    padding: 10rpx 0rpx;

    .title {
      width: 20%;
    }

    .des {
      width: 80%;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
    }
  }
}


//加入购物车和立即购买的弹出
.skusPopup {
  padding: 50rpx 30rpx;
  padding-bottom: 90rpx !important;

  .container {
    display: flex;
    flex-direction: column;
    padding-bottom: 100rpx;

    .headInfo {
      width: 100%;
      height: 230rpx;
      background-color: white;
      display: flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;

      .img {
        height: 200rpx;
        width: 200rpx;
        border-radius: 8rpx;
        overflow: hidden;

        image {
          height: 100%;
          width: 100%;
        }
      }

      .txt {
        height: 100%;
        border: 1rpx solid var(--defaultBd);
        display: flex;
        flex-direction: column;
        flex: 1;
        padding: 0 30rpx;

        .price {
          font-size: var(--maxSize);
          color: var(--themeColor);
        }

        .info {
          color: var(--greyColor)
        }
      }
    }

    .skus {
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      margin-top: 20rpx;

      .item {
        font-size: var(--minSize);
      }
    }

    .num {
      display: flex;
      width: 100%;
      margin-top: 20rpx;

      .title {
        width: 20%;
      }

      .input {
        width: 80%;
        display: flex;
        flex-wrap: wrap;
        align-items: center;

        input {
          text-align: center;
          width: 120rpx;
          height: 40rpx;
          display: block;
        }

        .van-button {
          width: 50rpx;
          height: 40rpx;
          padding: 0rpx 0rpx
        }

      }
    }

    .cart_choose_submit {
      background-color: var(--themeColor);
      position: absolute;
      bottom: 60rpx;
      left: 50%;
      transform: translateX(-50%);
      width: 90%;
    }
  }
}



.cartPopup {
  width: 85%;
  height:100vh;
  display: flex;
  flex-direction: column;

  .tittle {
    align-items: center;
    width: 100%;
    display: flex;
    justify-content: center;
    height: 100rpx;
    font-size: var(--bigSize);
    font-weight: 550;
    line-height: 3;
    background-color:  var(--defaultBgc);
  }
}

.shopcart {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  background-color: var(--defaultBgc);
  //减去title和底部提交区域
  height: calc(100vh - 260rpx) !important;

  .cartItem {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-top: 15rpx;
    background-color: white;

    .checkbox {
      width: 80rpx;
      display: flex;
      flex-direction: row;
      justify-content: center;
      align-items: center;

      .van-checkbox__label {
        padding-left: 0;
      }
    }

    van-card {
      flex: 1;

      .footer {
        display: flex;
        justify-content: space-between;
        height: 50rpx;

        input {
          text-align: center;
          width: 70rpx;
          height: 40rpx;
          display: block;
        }
      }
    }

    .van-card {
      background-color: white;
    }
  }
}

.cartSubmitButton {
  background-color: var(--themeColor) !important;
  border-color: var(--themeColor) !important;
}

.cartPrice {
  color: var(--themeColor) !important;
  font-weight: 550 !important;
}